<?php
/**
 * ItemsModel
 *  
 * @author rodrigo
 * @version 
 */
class ItemsModel extends Zwei_Db_Table
{
    /**
     * The default table name 
     */
    protected $_name = 'items';
    protected $_name_recursos = 'recursos';
    
    public function select(){
    	$select=new Zend_Db_Table_Select($this);
    	$select->setIntegrityCheck(false);
    	$select->from($this->_name)
    	->joinLeft($this->_name_recursos,"$this->_name.recursos_id=$this->_name_recursos.id",array('recurso'=>'nombre'))
    	;
    	return $select;
    }
}
